package app;

import java.io.IOException;
import java.net.URL;

import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.scene.Parent;
import javafx.scene.Scene;

public class main extends Application {

//显示主界面
@Override
public void start(Stage primaryStage) {
	try {
		//URL res=getClass().getResource("/");
		//System.out.println(res.toString());
		Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("View1/Login.fxml"));
		primaryStage.setTitle("主界面");
		primaryStage.setScene(new Scene(root));
		primaryStage.setResizable(false);
		primaryStage.show();
	} catch(Exception e) {
		e.printStackTrace();
	}
}
public static void main(String[] args) {
	launch(args);
}


}
